package com.itheima.service.impl;

import com.itheima.service.UserService;

import java.util.*;

public class UserServiceImpl implements UserService {

    private String name;
    private List<String> list;
    private String[] nameArray;
    private Properties properties;
    private Set<String> set;
    private Map<String,String> map;

    public void setName(String name) {
        this.name = name;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setNameArray(String[] nameArray) {
        this.nameArray = nameArray;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public void save() {
        System.out.println("name: "+name);
        System.out.println("list: "+list);
        System.out.println("array: "+ Arrays.toString(nameArray));
        System.out.println("properties: "+properties.getProperty("name"));
        System.out.println("set"+set);
        System.out.println("map: "+map);
    }
}
